//
//  LeftMessageTableViewCell.m
//  ShangPiBao
//
//  Created by chirui on 2017/10/18.
//  Copyright © 2017年 Shui. All rights reserved.
//

#import "LeftMessageTableViewCell.h"

@implementation LeftMessageTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;
    
}

+(NSString *)reuseIdentifier{
    
    NSString * reuseIdentifier = @"LeftMessageTableViewCell";
    
    return reuseIdentifier;
    
}

-(void)setCompanyIcon:(UIImageView *)companyIcon{

    _companyIcon = companyIcon;
    _companyIcon.layer.cornerRadius = 25.f;
    _companyIcon.layer.masksToBounds = YES;
    
}
-(void)setDetails:(UILabel *)details {

    _details = details;
    _details.frame = CGRectMake(10, 80, WIDTH -30, 20);
    _details.numberOfLines = 2;
    [_details sizeToFit];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
